package com.tis.mail.common;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import promis.utility.CanlendarDateFormat;
import promis.utility.CommonService;

public class CommonMail {

	public static String getDateTime(Date date){
    	if(CommonService.IsNull(date)) return null;
		
		DateFormat df = new SimpleDateFormat(CanlendarDateFormat.DATE_FORMAT_FULLDATE_ONLY_SAP2);
		String stringDate = "";
		try{
			stringDate = df.format(date);	        
		}catch(Exception e)
		{			
			System.err.println(e.getMessage());
		}
		return stringDate;
    }
	
}
